package com.project.controller;

import com.project.bean.GradeBean;
import com.project.service.IGradeService;
import com.project.service.ISaleCartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("grade")
@Api(tags = "权限")
public class GradeController {
    @Autowired
    private IGradeService gradeService;

    @ApiOperation(value = "查询所有权限" )
    @GetMapping("cutAll")
    public List<GradeBean> findAll() {
        return gradeService.findAll();
    }

}
